package com.wn.pay.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 投资人应收明细
 * </p>
 *
 * @author yellow docker
 * @since 2023-03-08
 */
@Getter
@Setter
  @TableName("agency_receive_plan")
@ApiModel(value = "AgencyReceivePlan对象", description = "投资人应收明细")
public class AgencyReceivePlan implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        private Long id;

      @ApiModelProperty("机构投资用户标识")
      private Long userId;

      @ApiModelProperty("机构投资用户编码")
      private String userCode;

      @ApiModelProperty("机构投资申购记录ID")
      private Long agencyBidId;

      @ApiModelProperty("还款计划项ID")
      private Long payPlanId;

      @ApiModelProperty("期数")
      private Integer numberOfPeriods;

      @ApiModelProperty("应收利息")
      private BigDecimal interest;

      @ApiModelProperty("应收本金")
      private BigDecimal principal;

      @ApiModelProperty("应收本息")
      private BigDecimal amount;

      @ApiModelProperty("应收时间")
      private LocalDateTime shouldReceiveDate;

      @ApiModelProperty("状态：0,.未收 1.已收  2.部分收到")
      private Integer receiveStatus;

      @ApiModelProperty("创建时间")
      private LocalDateTime createDate;

      @ApiModelProperty("年化利率(平台佣金，利差)")
      private BigDecimal commission;


}
